@decorator
def foo(param: Any) -&gt; Optional[Any]